package de.unifa.elostplugin.gui.wizards.pages;

import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.GridData;

import de.unifa.elostplugin.gui.wizards.BuildWizard;
import de.unifa.elostplugin.gui.wizards.beans.BuildBeanData;

public class BuildPageBranchRelease extends WizardPage {
	private Text txtDataSVNUUser;
	private Text txtDataSVNPassword;
	private BuildWizard wizard = (BuildWizard) this.getWizard();
	private BuildBeanData data;

	/**
	 * Create the wizard.
	 */
	public BuildPageBranchRelease() {
		super("wizardPage");
		setTitle("Branch Release");
		setDescription("Erzeugung eines jar-Files aus dem Branch");
		data = ((BuildWizard)getWizard()).getData();
	}

	/**
	 * Create contents of the wizard.
	 * 
	 * @param parent
	 */
	public void createControl(Composite parent) {
		Composite container = new Composite(parent, SWT.NULL);

		setControl(container);
		container.setLayout(new FillLayout(SWT.VERTICAL));

		Group grpDataSVN = new Group(container, SWT.NONE);
		grpDataSVN.setText("SVN-Daten");
		GridLayout gl_grpDataSVN = new GridLayout(2, false);
		gl_grpDataSVN.marginTop = 15;
		gl_grpDataSVN.marginLeft = 30;
		grpDataSVN.setLayout(gl_grpDataSVN);

		Label lblDataSVNUser = new Label(grpDataSVN, SWT.NONE);
		lblDataSVNUser.setText("SVN Benutzer");

		txtDataSVNUUser = new Text(grpDataSVN, SWT.BORDER);

		Label lblDataSVNPassword = new Label(grpDataSVN, SWT.NONE);
		lblDataSVNPassword.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER,
				false, false, 1, 1));
		lblDataSVNPassword.setText("SVN Passwort");

		txtDataSVNPassword = new Text(grpDataSVN, SWT.BORDER);
		txtDataSVNPassword.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER,
				true, false, 1, 1));

		Group grpDataVersion = new Group(container, SWT.NONE);
		grpDataVersion.setText("Versionsdaten");
	}
	
	
	

}
